Skip to content

Conversation

dkhalanskyjb
Copy link
Contributor

Fixes #68

@dkhalanskyjb dkhalanskyjb changed the title Add createOrNull functions for Add createOrNull functions for non-throwing construction of datetime entities Apr 2, 2025
@dkhalanskyjb dkhalanskyjb changed the title Add createOrNull functions for non-throwing construction of datetime entities Add orNull functions for non-throwing construction of datetime entities Apr 17, 2025
Prompts:
"""
In the last commit, `LocalDate.createOrNull` was introduced,
along with a usage sample, and with the existing tests modified
to also check `createOrNull`.
You should introduce `LocalTime.createOrNull` in the same way.
***
Now, similarly, introduce `LocalDateTime.createOrNull`
with tests and a usage sample.
***
Now also introduce `UtcOffset.createOrNull`
(with tests and a usage sample), except that since the constructor
for `UtcOffset` is internal, use the behavior from `fun UtcOffset`.
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add non-throwing LocalDate(Time) construction & parsing
1 participant